#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from ceasiompy.utils.moduleinterfaces import CPACSInOut

# ===== RCE integration =====

RCE = {
    "name": "CPACS2SUMO",
    "description": "Convert CPACS .xml file into SUMO .smx file",
    "exec": "pwd\npython cpacs2sumo.py",
    "author": "Aidan Jungo",
    "email": "aidan.jungo@cfse.ch",
}

# ===== CPACS inputs and outputs =====

cpacs_inout = CPACSInOut()

# ----- Input -----

# cpacs_inout.add_input(
#     var_name='wkdir_path',
#     var_type='pathtype',
#     default_value=None,
#     unit='1',
#     xpath='/cpacs/toolspecific/CEASIOMpy/filesPath/wkdirPath',
#     gui=True,
#     gui_name='Workin directory',
# )


# ----- Output -----

cpacs_inout.add_output(
    var_name='sumo_file_path',
    default_value=None,
    unit='1',
    descr='Path to the SUMO file generated by CPACS2SUMO',
    xpath='/cpacs/toolspecific/CEASIOMpy/filesPath/sumoFilePath',
)
